Composite graph cache management

ABSTRACT

Methods, systems, and computer program products for synchronizing data between a mobile application and an enterprise data source are provided. A computer-implemented method may include receiving a request for data from an application executing on a mobile device, receiving a document including the requested data from a data source where the document represents a graph of data having a plurality of nodes, and providing a partial graph of data to the application where the partial graph is derived from the received document and at least includes the requested data.

BACKGROUND OF THE INVENTION

1. Field of the Invention

Embodiments generally relate to the field of mobility.

2. Background Art

Data owners are often concerned about shielding their data sources from unwanted or unexpected data requests. In particular, a data source that services a mobile application should not be exposed to an unpredictable amount of data requests from the mobile application.

Conventionally, mobile applications directly access data sources (e.g., enterprise data sources) to retrieve data. Because a plurality of mobile applications can make concurrent requests for data at different times, it often leads to an unexpected load on the data sources. Furthermore, because enterprise data typically exists in disparate formats at geographically distributed locations, servicing data requests received from the mobile applications can be a resource intensive process.

Accordingly, systems, methods and computer program products are needed that efficiently respond to mobile application data requests while shielding data sources from being negatively impacted by such requests.

BRIEF SUMMARY OF THE INVENTION

Embodiments relate to data synchronization between a mobile application and an enterprise data source. In one embodiment, a computer-implemented method for synchronizing data between a mobile application and an enterprise data source includes receiving a request for data from an application executing on a mobile device, receiving a document including the requested data from a data source where the document represents a graph of data having a plurality of nodes, and providing a partial graph of data to the application where the partial graph is derived from the received document and at least includes the requested data.

In another embodiment, a server-based system for synchronizing data between a mobile application and an enterprise data source includes a caching module configured to receive a request for data from an application executing on a mobile device, receive a document including the requested data from a data source where the document represents a graph of data having a plurality of nodes, and provide a partial graph of data to the application where the partial graph is derived from the received document and at least includes the requested data.

In an additional embodiment, a computer-readable storage device has control logic recorded thereon that when executed by a processor, causes the processor to synchronize data between a mobile application and an enterprise data source. The control logic includes computer-readable program code to cause the processor to receive a request for data from an application executing on a mobile device, receive a document including the requested data from a data source where the document represents a graph of data having a plurality of nodes, and provide a partial graph of data to the application where the partial graph is derived from the received document and at least includes the requested data.

Further embodiments, features, and advantages of the invention, as well as the structure and operation of the various embodiments of the invention are described in detail below with reference to accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS/FIGURES

The accompanying drawings, which are incorporated herein and form part of the specification, illustrate embodiments of the present invention and, together with the description, further serve to explain the principles of the embodiments and to enable a person skilled in the relevant art(s) to make and use the embodiments.

FIG. 1 is an exemplary network architecture in which embodiments of the present invention, or portions thereof, can be implemented.

FIG. 2 is an example system framework, according to an embodiment.

FIG. 3 is a diagram illustrating a system for synchronizing data between a mobile application and an enterprise data source, according to an embodiment.

FIG. 4 is a flow diagram of a method for synchronizing data between a mobile application and an enterprise data source, according to an embodiment.

FIG. 5 is a diagram of an exemplary computer system that may be used in an embodiment.

The features and advantages of embodiments will become more apparent from the detailed description set forth below when taken in conjunction with the drawings, in which like reference characters identify corresponding elements throughout. In the drawings, like reference numbers generally indicate identical, functionally similar, and/or structurally similar elements. The drawing in which an element first appears is indicated by the leftmost digit(s) in the corresponding reference number.

DETAILED DESCRIPTION OF THE INVENTION

While the present invention is described herein with reference to illustrative embodiments for particular applications, it should be understood that the invention is not limited thereto. Those skilled in the art with access to the teachings provided herein will recognize additional modifications, applications, and embodiments within the scope thereof and additional fields in which embodiments of the invention would be of significant utility.

It is noted that references in the specification to “one embodiment,” “an embodiment,” “an example embodiment,” etc., indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it would be within the knowledge of one skilled in the art to incorporate such a feature, structure, or characteristic with other embodiments whether or not explicitly described.

Various embodiments include methods, systems, and computer program products for synchronizing data between a mobile application and an enterprise data source. Embodiments may be independently implemented or incorporated as features in other systems, such as systems that provide data caching for mobile applications. An example system is described in greater detail in U.S. patent application Ser. No. 12/760,233, filed on Apr. 14, 2010, Atty. Dkt. No. 1933.0850001, entitled “Data Caching for Mobile Applications,” which is incorporated by reference herein in its entirety.

Overview

Mobile clients request and use information from a variety of enterprise data sources. Mobile applications enable mobile clients to create, modify, and otherwise access enterprise data, which may be stored and accessed as documents, objects, or other forms of structured data. Further, data created or updated by a mobile client, whether connected or offline, needs to be synchronized with the system of record. The embodiments described herein enable mobile clients to efficiently retrieve and update enterprise data using partial datasets.

For example, in an embodiment, a mobile client requests data from an enterprise data source using a mobile application. The request is received by middleware configured to communicate partial documents and change sets with mobile clients while providing full document support for enterprise data sources. The middleware is also configured to cache full documents and other data structures locally. The centrally cached documents may be used to service requests for data from other mobile clients and to help reduce the overall number of requests made to enterprise data sources.

Next, in an embodiment, the middleware searches its local cache for a copy of the document containing the requested data. The middleware then queries the enterprise data source when the data is not available locally. The middleware requests the full document (e.g., XML, JSON, iDoc, etc.) containing the enterprise data requested by the mobile client. However, even though the backend system of record (e.g., SAP, DBMS, etc.) manages the information as a business document, business object, or other unit of work, the mobile client only needs a subset or partial set of this data.

In an embodiment, the middleware prepares and returns a partial set of data to the mobile client in response to the initial request. The mobile client then may create new data or modify existing data associated with this partial dataset using a mobile application. Further, one or more modified versions of the data may be created while the mobile client is either online or offline.

Next, in an embodiment, the middleware receives a modified version of the partial set of data from the mobile device. The middleware then determines the operations that were performed to produce the modified version by comparing the modified version to corresponding data in the original document. The middleware creates a new version of the document to reflect the changes that were made to the partial dataset, and provides the new version to the enterprise data source.

In an embodiment, the middleware serves as an intermediary between the mobile client and the enterprise server. The middleware is configured to communicate with enterprise data sources using full business documents, business objects, and other units of work. The middleware is also configured to exchange partial datasets or subsets of full documents with various types of clients. Thus, the middleware provides efficient interaction between mobile clients and enterprise data sources while ensuring that full sets of enterprise data are consistent and valid.

Example Network Architecture

FIG. 1 is an example network architecture 100 in which embodiments of the present invention, or portions thereof, are implemented. Network architecture 100 includes a mobile device 102 connected using network 104 to server 106, in accordance with an embodiment of the present invention. In accordance with another embodiment of the present invention, a software application is deployed on mobile device 102. The software application is written to occasionally retrieve data from server 106. When the software application attempts to retrieve data from server 106, network 104 may or may not be available. Embodiments described herein refer to mobile devices, such as mobile device 102. However, it should be understood that this is not intended to be limiting and that other embodiments may include any computing device connected over a network 104 to a server.

For example, according to an embodiment, mobile device 102 may be any computing device designed for personal use by a user or integrated with other computer systems or computing devices for use by an end-user. For example, mobile device 102 may include any computing device such as a desktop computer, laptop, tablet, smartphone, gaming system, navigation device, portable media player, mobile device, electronic device, and computing devices embedded into other systems including, for example, automobiles and appliances. Mobile device 102 may also include any other type of computer system having at least one processor and memory.

Network 104 can be any network or combination of networks that can carry data communications. Such a network can include, but is not limited to, a wired (e.g., Ethernet) or a wireless (e.g., Wi-Fi and 4G) network. In addition, the network may include, but is not limited to, a local area network, and/or wide area network such as the Internet. The network can support protocols and technology including, but not limited to, Internet or World Wide Web protocols and/or services. Intermediate network routers, gateways, or servers may be provided between servers and clients depending on a particular application or environment.

Server 106 and any combination of its components, may be part of, or may be implemented using, one or more computing devices. Such server-based computing devices may include, but are not limited to, one or more standalone servers, distributed computing systems, clustered computer systems, cloud computing systems, and grid computing systems.

Example Framework

FIG. 2 is an example framework 200, in accordance with an embodiment of the present invention. Framework 200 defines a mobile application 202, middleware 204, document 206, and enterprise data source 208, in accordance with an embodiment of the present invention. One skilled in the relevant arts will appreciate that the arrangement shown in framework 200 is presented by way of example, and not limitation. In accordance with an embodiment of the present invention, mobile application 202 is operable to execute on mobile device 102. In accordance with a further embodiment of the present invention, enterprise data source 208 is equivalent to server 106.

Mobile application 202 accesses data from enterprise data source 208 by making calls to an API or other interface provided by middleware 204, in accordance with an embodiment of the present invention. In accordance with an embodiment of the present invention, middleware 204 is the iAnywhere Mobilink, iMO and SUP middleware provided by Sybase, Inc. of Dublin, Calif.

One skilled in the relevant arts will appreciate that enterprise data source 208 may be any number of types of data sources, including, for example, a relational database or a remote procedure. Middleware 204 facilitates communications, through the use of its API, by an application to one or more data sources, such as enterprise data source 208.

Document 206 is a representation of data, in any form and type, contained in enterprise data source 208, in accordance with an embodiment of the present invention. For example, many data sources, enterprise applications, and systems of record have the ability to manage data as a graph, an XML document, a JSON document, an iDoc, or another specific representation of data. For example, a system of record may contain an order having specific line items, which reference product information. Such information can be represented as a graph of data with a plurality of nodes and may be contained within a single business document.

According to an embodiment, document 206 may represent multiple data sources (e.g., document 206 may comprise subsets of data from multiple data sources). According to another embodiment, document 206 may include metadata, which may be interpreted by the software of mobile application 202 to facilitate access of the data from enterprise data source 208 through middleware 204.

In an embodiment, not intended to limit the invention, enterprise data source 208 provides access to enterprise resources. As an example, enterprise resources (ERs) include, but are not limited to, database management systems (DBMS), SAP enterprise systems, web services, data files, hypertext transfer protocol (HTTP) systems and even spreadsheets. In addition, and according to another embodiment, third parties (e.g., customers, software vendors, etc.) may extend functionality of enterprise data source 208 to include, for example, integration with additional data sources (not shown).

System for Synchronizing Data between a Mobile Application and an Enterprise Data Source

FIG. 3 is a diagram illustrating a system 300 for synchronizing data between a mobile application and an enterprise data source. System 300 includes mobile device 102, middleware 204 and enterprise data source 208.

According to an embodiment, mobile device 102 is an occasionally connected computing device that executes at least one mobile application 202. Additionally, mobile device 102 includes mobile cache 310. In an embodiment, mobile cache 310 may be used to receive and store numerous sets of data, some or all of them being partial sets of data, which mobile device 102 receives from middleware 204. Further, mobile cache 310 may store modified versions of datasets (partial or full) created by an offline mobile device 102 that middleware 204 will later use to update enterprise data source 208.

According to another embodiment, the modified versions of datasets may be stored in mobile cache 310 while mobile device is not connected to a network. Mobile application 202 may be configured to synchronize one or more versions of the datasets with middleware 204 when mobile device 102 reconnects to a network. In an alternative embodiment, one or more modified version of enterprise data may be pushed to middleware 204 or pulled by middleware 204 on a scheduled or unscheduled basis.

Middleware 204 includes caching module 320 and cache 330. In an embodiment, middleware 204 acts as an interface between mobile application 202 and enterprise data source 208. For example, middleware 204 may be configured to allow clients to access enterprise data in partial datasets without having to transport an entire document or dataset between mobile device 102 and enterprise data server 208. Thus, middleware 204 may manage the state of the document or full dataset on behalf of mobile device 102, which may only be concerned with partial sets of data.

In another embodiment, middleware 204 reduces unwanted or unexpected loads (e.g., unpredictable data requests) on enterprise data source 208 using caching module 320 and cache 330. In particular, according to an embodiment, middleware 204 services mobile application data requests using caching module 320 and cache 330. Thus, at times, mobile application 202 need not invoke direct requests on enterprise data source 208 or any other backend enterprise information systems. In this way, embodiments of the present invention efficiently service mobile application data requests while shielding data sources from being negatively impacted or overloaded by the requests.

Enterprise data source 208 includes document 340. Enterprise data source 208 may represent one or more data sources that exist within an enterprise environment. For example, enterprise data source 208 may include, but is not limited to, database management systems (DBMS), data warehouses, SAP enterprise systems, custom software applications, web services, data files, hypertext transfer protocol (HTTP) systems and also spreadsheets. In an embodiment, enterprise data source 208 manages data using one or more of a graph, an XML document, a JSON document, an iDoc, or other types of data collections. Document 340 represents a collection of data.

In another embodiment, mobile application 202 requests data from enterprise data source 208. Caching module 320 receives the request and makes a corresponding request to enterprise data source 208 on behalf of mobile device 102. Enterprise data source 208 provides document 340 to caching module 320, which then places document 340 in cache 330. Caching module 320 identifies the partial set of data requested by mobile application 202 existing in document 340. Caching module 320 then responds to mobile application 202 by providing the partial dataset.

In a further embodiment, mobile application 202 is used to create a new version of the partial dataset while mobile device 102 is offline. The new version of the partial dataset is stored in mobile cache 310 until mobile device 102 is able to reconnect to middleware 204. Once caching module 320 receives the new version of the partial dataset, it determines the operations that were performed to produce the modified version, it creates a new version of document 340 based on the determined operations, and it then provides the new version of document 340 to enterprise data source 208.

Method for Synchronizing Data between a Mobile Application and an Enterprise Data Source

FIG. 4 is a flow diagram of a method 400 for synchronizing data between a mobile application and an enterprise data source, according to an embodiment.

Method 400 begins at step 410, when a request for data is received from an application executing on an occasionally connected mobile device. According to an embodiment, mobile application 202 requests data from an enterprise data source 208, which has the ability to manage data as a document capable of being represented as a graph having a plurality of nodes.

In an embodiment, mobile application 202 is configured to send requests for enterprise data to middleware 204. For example, mobile application 202 may be configure to send data requests to caching module 320 using an Application Programming Interface (API), which may include a REST-based or other type of web service.

In an embodiment, caching module 320 receives a request from mobile application 202 for data residing on enterprise data source 208. Caching module 320 may first search cache 330 to determine whether the requested data is available locally. For example, caching module may have stored data previously requested by one or more mobile clients in cache 330. Caching module 320 may then service the request using a cached version of the data available in cache 330, instead of requesting the data from enterprise data source 208.

In some embodiments, clients and systems may access enterprise data source 208 either directly or using one or more systems other than middleware 204. In these scenarios, a version of a document stored in cache 330 could become stale. Thus, caching module 320 may also be configured to synchronize a version of a document in local cache 330 with a newer version from enterprise data source to avoid providing mobile device 102 with outdated data. For example, caching module 320 may perform a check periodically or based on a request to determine whether a newer version of a cached document is available from enterprise data source 208.

In these scenarios, partial or full datasets stored in mobile cache 310 or on mobile device 102 may also become outdated. Such scenarios are further discussed along with systems and methods for providing cache conflict detection and resolution in co-pending U.S. patent application Ser. No. ______, filed ______, entitled CACHE CONFLICT DETECTION, (attorney docket # 1933.2080000), incorporated herein by reference in its entirety, although the invention is not limited to these teachings.

In another embodiment, caching module 320 determines that the data requested by mobile application 202 is not available in cache 330. Caching module 320 then requests and receives the data from enterprise data source 208. For example, the requested data may include document 340.

According to an embodiment, caching module 320 may persist, for some time period, data, result sets, objects, and documents, such as document 340, in cache 330. Thus, a subsequent requestor, either the same or another mobile device, can benefit from data previously stored within cache 330, helping to reduce the overall number of requests made to enterprise data source 208.

At step 420, a partial graph of data including at least the requested data is provided to mobile application 202. in an embodiment, caching module 320 provides mobile application 202 with a partial set of data from a larger dataset (e.g., document 340), which originated from enterprise data source 208.

For example, a mobile application may request data associated with a single service ticket. However, enterprise data source 208 may store or provide the requested service ticket data with other information, such as related service tickets by date or by user. Caching module 320 is configured to provide a partial dataset that includes the requested data to mobile application 202.

According to another embodiment, mobile application 202 receives the partial dataset and may store its own local copy in mobile cache 310. Mobile application 202 then modifies the partial dataset while mobile device 102 is either online or offline. For example, when mobile device 102 is offline, one or more modified versions of the partial dataset may be stored in mobile cache 310 until mobile device 102 is able to reconnect to middleware 204.

At step 430, a modified version of the partial graph is received from the mobile application. In an embodiment, caching module 320 receives one or more modified versions of the partial graph stored in mobile cache 310.

According to an embodiment, mobile application 202 may be used to create, update and delete data associated with a partial dataset, thus creating a modified version of the partial dataset. One or more modified versions of the partial dataset then may be stored in mobile cache 310 and then later communicated to middleware 204 for graph merge processing with an associated document or dataset.

At step 440, the operations that were performed to produce the modified version of the partial graph are determined. According to an embodiment, caching module 320 determines one or more operations that were performed on the partial dataset by mobile application 202. For example, caching module 320 can derive the delta or the operations performed against the partial dataset on mobile device 102 by comparing the modified version of the dataset with an earlier version of the partial dataset or the full version of the document from which the partial dataset originated.

At step 450, a locally cached version of the graph is modified, based on the determined operations that were performed on the partial graph, producing a new version of the graph. In an embodiment, caching module 320 modifies a cached version of document 340 available in cache 330 based on the one or more operations that were determined to be performed to create the modified partial dataset. For example, caching module 320 performs graph merge processing to incorporate the changes introduced by the partial dataset into the original document. Thus, caching module 320 synchronizes document 340 with the changes that were made to the corresponding partial dataset, producing a new version of document 340.

At step 460, the new version of the graph is provided to the enterprise data source. According to an embodiment, caching module 320 provides the new version of document 340 to enterprise data source 208. Thus, caching module 320 completes the changes made to the partial dataset by providing a full, new version of document 340 to enterprise data source 208.

Example Computer System

In an embodiment, the system and components of embodiments described herein are implemented using well-known computers, such as example computer system 500 shown in FIG. 5. For example, system 300 and other embodiments for synchronizing data between a mobile application and an enterprise data source may be implemented using one or more computer systems 500.

Computer system 500 includes one or more processors (also called central processing units, Of CPUs), such as a processor 504. Processor 504 is connected to a communication infrastructure 506.

Computer system 500 also includes a main or primary memory 508, such as random access memory (RAM). Main memory 508 has stored control logic (computer software), and data.

Computer system 500 may also include one or more secondary storage devices 510. Secondary storage device 510 includes, for example, a hard disk drive 512 and/or a removable storage device or drive 514, as well as other types of storage devices, such as memory cards and memory sticks. Removable storage drive 514 represents a floppy disk drive, a magnetic tape drive, a compact disk drive, an optical storage device, tape backup, etc.

Removable storage drive 514 may interact with a removable storage unit 518. Removable storage unit 518 includes a computer usable or readable storage device having stored thereon computer software (control logic) and/or data. Removable storage unit 518 represents a floppy disk, magnetic tape, compact disk, MID, optical storage disk, or any other computer data storage device, Removable storage drive 514 may read from and/or write to removable storage unit 518 in a well-known manner.

In alternative implementations, secondary memory 510 may include other similar means for allowing computer programs or other instructions to be loaded into computer system 500. Such means may include, for example, a removable storage unit 522 and an interface 520. Examples of such means may include a program cartridge and cartridge interface (such as that found in video game devices), a removable memory chip (such as an EPROM, or PROM) and associated socket, and other removable storage units 522 and interfaces 520 which allow software and data to be transferred from the removable storage unit 522 to computer system 500.

Computer system 500 also includes input/output/display devices 530, such as monitors, keyboards, pointing devices, etc., which communicate with communication infrastructure 506 through a display interface 502.

Computer system 500 further includes a communication or network interface 524. Communication interface 524 may enable computer system 500 to communicate with remote devices. For example, communication interface 524 may allow computer system 500 to communicate over communications path 526, such as LANs, WANs, the Internet, etc. Communications interface 524 may interface with remote sites or networks via wired or wireless connections.

Control logic may be transmitted to and from computer system 500 via communication path 526.

Any tangible apparatus or article of manufacture comprising a computer useable or readable medium having control logic (software) stored thereon is referred to herein as a computer program product or program storage device. This includes, but is not limited to, computer system 500, main memory 508, secondary storage device 510, and removable storage unit 518. Such computer program products, having control logic stored thereon that, when executed by one or more data processing devices, causes such data processing devices to operate as described herein, represent embodiments of the invention.

Embodiments can work with software, hardware, and/or operating system implementations other than those described herein. Any software, hardware, and operating system implementations suitable for performing the functions described herein can be used. Embodiments are applicable to both a client and to a server or a combination of both.

It is to be appreciated that the Detailed Description section, and not the Summary and Abstract sections, is intended to be used to interpret the claims. The Summary and Abstract sections may set forth one or more but not all exemplary embodiments of the present invention as contemplated by the inventor(s), and thus, are not intended to limit the present invention and the appended claims in any way.

Embodiments have been described above with the aid of functional building blocks illustrating the implementation of specified functions and relationships thereof. The boundaries of these functional building blocks have been arbitrarily defined herein for the convenience of the description. Alternate boundaries can be defined so long as the specified functions and relationships thereof are appropriately performed. The breadth and scope of the present invention should not be limited by any of the above-described embodiments.

In addition, the foregoing description of the specific embodiments will so fully reveal the general nature of the invention that others can, by applying knowledge within the skill of the art, readily modify and/or adapt for various applications such specific embodiments, without undue experimentation, without departing from the general concept of the present invention. Therefore, such adaptations and modifications are intended to be within the meaning and range of equivalents of the disclosed embodiments, based on the teaching and guidance presented herein. It is to be understood that the phraseology or terminology herein is for the purpose of description and not of limitation, such that the terminology or phraseology of the present specification is to be interpreted by the skilled artisan in light of the teachings and guidance.

The breadth and scope of the present invention should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents. 

What is claimed is:
 1. A computer-implemented method for synchronizing data between a mobile application and an enterprise data source, comprising: receiving a request for data from an application executing on a mobile device; receiving a document including the requested data from a data source, wherein the document represents a graph of data having a plurality of nodes; and providing a partial graph of data to the application, wherein the partial graph is derived from the received document and at least includes the requested data.
 2. The method of claim 1, further comprising: requesting the data from the data source on behalf of the application.
 3. The method of claim 2, further comprising: determining whether the received document exists in local cache.
 4. The method of claim 3, further comprising: persisting the received document in the local cache based on a determination that the received document does not exist in the local cache.
 5. The method of claim 3, further comprising: replacing an existing document in the local cache with the received document based on a determination that the received document is a more recent version.
 6. The method of claim 1, further comprising: receiving a modified partial graph from the application; and providing a new version of the document to the data source, wherein the new version includes one or more changes introduced by the modified partial graph.
 7. The method of claim 6, further comprising: determining one or more operations performed to create the modified partial graph; and modifying the document in local cache based on the determined operations to create the new version of the document.
 8. A server-based system for synchronizing data between a mobile application and an enterprise data source, comprising: a caching module, implemented with the processor-based device, configured to: receive a request for data from an application executing on a mobile device; receive a document including the requested data from a data source, wherein the document represents a graph of data having a plurality of nodes; and provide a partial graph of data to the application, wherein the partial graph is derived from the received document and at least includes the requested data.
 9. The system of claim 8, wherein the caching module is further configured to: request the data from the data source on behalf of the application.
 10. The system of claim 9, wherein the caching module is further configured to: determine whether the received document exists in local cache.
 11. The system of claim 10, wherein the caching module is further configured to: persist the received document in the local cache based on a determination that the received document does not exist in the local cache.
 12. The system of claim 10, wherein the caching module is further configured to: replace an existing document in the local cache with the received document based on a determination that the received document is a more recent version.
 13. The system of claim 8, wherein the caching module is further configured to: receive a modified partial graph from the application; and provide a new version of the document to the data source, wherein the new version includes one or more changes introduced by the modified partial graph.
 14. The system of claim 13, wherein the caching module is further configured to: determine one or more operations performed to create the modified partial graph; and modify the document in local cache based on the determined operations to create the new version of the document.
 15. A computer-readable storage medium having control logic recorded thereon that, when executed by a processor, causes the processor to perform operations to synchronize data between a mobile application and an enterprise data source, the operations comprising: receiving a request for data from an application executing on a mobile device; receiving a document including the requested data from a data source, wherein the document represents a graph of data having a plurality of nodes; and providing a partial graph of data to the application, wherein the partial graph is derived from the received document and at least includes the requested data.
 16. The computer-readable storage medium of claim 15, the operations further comprising: requesting the data from the data source on behalf of the application.
 17. The computer-readable storage medium of claim 16, the operations further comprising: determining whether the received document exists in local cache.
 18. The computer-readable storage medium of claim 17, the operations further comprising: persisting the received document in the local cache based on a determination that the received document does not exist in the local cache.
 19. The computer-readable storage medium of claim 15, the operations further comprising: receiving a modified partial graph from the application; and providing a new version of the document to the data source, wherein the new version includes one or more changes introduced by the modified partial graph.
 20. The computer-readable storage medium of claim 19, the operations further comprising: determining one or more operations performed to create the modified partial graph; and modifying the document in local cache based on the determined operations to create the new version of the document. 